Skip to main content

AccessorCache<T>

Member accessor cache.

Assembly: ServiceStack.dll
View Source
Declaration
public static class AccessorCache<T>

Methods

GetCachedAccessor<TProperty>(MemberInfo, Expression<Func<T, TProperty>>, Boolean)

Gets an accessor func based on an expression

View Source
Declaration
public static Func<T, TProperty> GetCachedAccessor<TProperty>(MemberInfo member, Expression<Func<T, TProperty>> expression, bool bypassCache = false)
Returns

System.Func<<T>,<TProperty>>: Accessor func

Parameters
TypeNameDescription
System.Reflection.MemberInfomemberThe member represented by the expression

| | System.Linq.Expressions.Expression<System.Func<<T>,<TProperty>>> | expression |

| | System.Boolean | bypassCache |

|

Type Parameters
  • TProperty

Clear()

View Source
Declaration
public static void Clear()